﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Admin_ascx_TitleLike : System.Web.UI.UserControl,IEditShowTemplate
{
    protected void Page_Load(object sender, EventArgs e)
    {
        
    }

    #region IEditShowTemplate 成员
    
    public void SetField(ConfigColumns cCol, string value, bool isEdit)
    {        
        if (isEdit)
        {
            this.titleTxt.Text = value;
        }
        this.colname.Value = cCol.ColumnName;
    }

    public string GetInsertSql(ConfigColumns cCol)
    {
        return "'" + Request.Form[cCol.ColumnName+"_EditShow$titletxt"].ToSql() + "'";
    }

    public string GetInsertSqlBefore(ConfigColumns cCol)
    {
        return cCol.ColumnName;
    }

    public string GetUpdateSql(ConfigColumns cCol)
    {
        return "title='" + Request.Form[cCol.ColumnName+"_EditShow$titletxt"].ToSql() + "'";
    }

    #endregion
}
